package com.zjj.learn.javaplus.pkg01.demo11;

public class Teacher extends People{

    private Double salary;

    public Teacher() {
    }

    public Teacher(String name, Integer age, Double salary) {
        super(name, age);
        this.salary = salary;
    }

    @Override
    protected String desc() {
        String desc = "我是一名人民教师";
        System.out.println(desc);
        return desc;
    }

    public String teach(String kecheng){
        String teach = this.getName() + " 今天指导了 " + kecheng;
        System.out.println(teach);
        return teach;
    }
}
